package light.head.dao.inv;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.inv.InvSaleInfoDetail;

import org.springframework.stereotype.Service;
@Service
public class InvSaleInfoDetailDAO extends BaseDAO<InvSaleInfoDetail, Integer>{
	private final static String sql_findByIsic = "FROM InvSaleInfoDetail isd WHERE isd.deleted = 0 AND isd.isic = ?";
	/**
	 * 通过l零售明细编号获取序列号
	 * @param isc			零售明细编号
	 */
	public List<InvSaleInfoDetail> findByIsic(Integer isic) {
		if (null == isic) return null;
		return find(sql_findByIsic, null, null, isic);
	}
}
